package com.cictec.middleware.distribute.rabbitmq;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TopicSender {

	@Autowired
	private AmqpTemplate rabbitTemplate;


	public void sendGps(String json) {
//		System.out.println("Sender : " + json);
		this.rabbitTemplate.convertAndSend("topicExchange", "topic.gps", json);
	}


}